# $Id: PKGBUILD 67642 2012-03-13 15:00:45Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>

pkgname=xpacman2
pkgver=1.002
pkgrel=4
pkgdesc="another X pacman game"
arch=('i686' 'x86_64')
url="ftp://ftp.nvg.unit.no/pub/pacman/"
license=('GPL')
depends=(libx11 ncurses gcc-libs)
makedepends=()
source=(ftp://ftp.nvg.unit.no/pub/pacman/pacman-${pkgver/./_}.tar.gz
	build-fix.patch)
md5sums=('afcbc268d1eff6ea3a834c7a5f715f77'
         '4faf33134a2a74f284059a2971833fa1')

build() {
  cd $srcdir/pacman-${pkgver/./_}
  patch -Np1 <../build-fix.patch
  ./configure --prefix=/usr
  make
  make DESTDIR=$pkgdir install
  (cd $pkgdir/usr/bin/ && mv pacman xpacman2)
}
